
from django.conf.urls import url
from django.contrib import admin
from . import views

urlpatterns = [
    url(r'^areas/$', views.AreasView.as_view()),
    #新增地址
    url(r'^addresses/create/$', views.CreateAddressView.as_view(),name='address'),
    url(r'^addresses/(?P<address_id>\d+)/$', views.UpdateAddressView.as_view()),
    #设置默认接口
    url(r'^addresses/(?P<address_id>\d+)/default/$', views.DefaultAddressView.as_view()),
   #修改地址
    url(r'^addresses/(?P<address_id>\d+)/title/$', views.UpdateTitleAddressView.as_view()),
    #修改密码
    url(r'^password/$', views.ChangePasswordView.as_view()),
]